class CA
{
    double disabilityAmount() 
    {
        if (_seniority < 2) return 0;
        if (_monthsDisabled > 12) return 0;
        if (_isPartTime) return 0;
        return 1.0;   
    }
private:
    int _seniority;
    int _monthsDisabled;
    bool _isPartTime;
};
